#include "CriticalSections.h"



CCriticalSections::CCriticalSections()
{
    InitializeCriticalSection(&m_cs);
}


CCriticalSections::~CCriticalSections()
{
    Delete();
}

void CCriticalSections::Enter()
{
    EnterCriticalSection(&m_cs);
}

void CCriticalSections::Leave()
{
    LeaveCriticalSection(&m_cs);
}

void CCriticalSections::Delete()
{
    DeleteCriticalSection(&m_cs);
}
